.strategy-page {
  padding: 24px;
  background-color: #f5f5f5;
  min-height: calc(100vh - 64px);
}

.selected-codes {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
}

.stock-list {
  display: flex;
  flex-wrap: wrap;
  max-height: 200px;
  overflow-y: auto;
  padding: 8px 0;
}

.placeholder-card {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.results-placeholder {
  height: 400px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 16px;
}

.results-section {
  padding: 8px 0;
}

/* 股票组合管理样式 */
.selected-codes-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-height: 120px;
  overflow-y: auto;
  padding: 8px;
  background-color: #fafafa;
  border-radius: 4px;
}

.group-codes-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.group-codes-preview .ant-tag {
  margin-right: 0;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .strategy-page {
    padding: 16px;
  }
}

/* Add styles for monthly returns heatmap */
.monthly-returns-heatmap {
  margin-top: 20px;
}

.year-card {
  margin-bottom: 20px;
}

.months-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
}

.month-cell {
  /* padding: 10px; */
  border-radius: 4px;
  text-align: center;
  min-height: 60px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.month-cell.empty {
  background-color: #f0f0f0;
  color: #999;
}

.month-name {
  font-weight: bold;
  margin-bottom: 5px;
}

.month-return {
  font-size: 16px;
}

/* Tabs styling */
.ant-tabs-tab {
  font-size: 16px;
}

/* Drawdown analysis styles */
.ant-badge-count {
  font-size: 12px;
  height: 20px;
  line-height: 20px;
  padding: 0 6px;
}

/* Add styles for yearly returns table */
.yearly-returns-table {
  margin-bottom: 20px;
}

.yearly-returns-table .ant-table-thead > tr > th {
  background-color: #f5f5f5;
  font-weight: bold;
}

.yearly-returns-table .ant-table-tbody > tr:hover > td {
  background-color: #f0f7ff;
}

/* Progress bar styles for yearly returns */
.return-progress-container {
  position: relative;
  height: 30px;
  width: 100%;
}

.return-axis {
  position: absolute;
  top: 0;
  left: 50%;
  height: 100%;
  width: 1px;
}

.axis-line {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 1px;
  background-color: #d9d9d9;
}

.return-bar {
  position: absolute;
  height: 8px;
  border-radius: 2px;
}

.return-bar.positive {
  background-color: #f50;
}

.return-bar.negative {
  background-color: #2db7f5;
}

.return-bar.positive-compound {
  background-color: #fa8c16;
}

.return-bar.negative-compound {
  background-color: #13c2c2;
}

/* 年度收益率说明样式 */
.yearly-returns-table .explanation p {
  margin-bottom: 5px;
  font-size: 13px;
  line-height: 1.5;
}

.yearly-returns-table .legend span {
  font-size: 12px;
}

/* 收益曲线图样式 */
.chart-container {
  width: 100%;
  margin: 20px 0;
  border-radius: 4px;
  background-color: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  padding: 16px;
}

.returns-chart {
  width: 100%;
  height: 400px;
  margin: 0 auto;
}

.returns-chart > div {
  width: 100%;
  height: 100%;
}

/* 年化收益图表样式 */
.annualized-returns-chart {
  width: 100%;
  height: 300px;
  margin: 20px auto;
  background-color: #fff;
  border-radius: 4px;
  padding: 16px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.annualized-returns-chart > div {
  width: 100%;
  height: 100%;
}

/* 收益统计卡片样式 */
.ant-statistic-title {
  font-size: 14px;
  color: rgba(0, 0, 0, 0.65);
}

.ant-statistic-content {
  font-size: 24px;
  font-weight: bold;
}

.strategy-container {
  padding: 20px;
}

.parameters-card {
  margin-bottom: 20px;
}

.results-card {
  margin-bottom: 20px;
}

.results-section {
  margin-bottom: 20px;
}

.results-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 100px 0;
  color: #ccc;
}

.stock-list {
  max-height: 300px;
  overflow-y: auto;
  padding: 10px;
}

.selected-codes {
  margin-bottom: 10px;
}

.selected-codes .ant-tag {
  margin-bottom: 8px;
}

.selected-codes-preview {
  max-height: 150px;
  overflow-y: auto;
  padding: 10px;
  border: 1px dashed #d9d9d9;
  border-radius: 4px;
}

.chart-container {
  width: 100%;
  height: 400px;
}

.monthly-returns-heatmap {
  margin-top: 20px;
}

.year-card {
  margin-bottom: 20px;
}

.months-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-gap: 10px;
}

.month-cell {
  padding: 10px;
  text-align: center;
  border-radius: 4px;
  background-color: #f0f0f0;
}

.month-cell.empty {
  background-color: #f9f9f9;
  color: #999;
}

.month-name {
  font-size: 12px;
  margin-bottom: 5px;
}

.month-return {
  font-size: 14px;
  font-weight: bold;
}

.return-progress-container {
  position: relative;
  height: 40px;
  display: flex;
  align-items: center;
}

.return-axis {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 1px;
}

.axis-line {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 1px;
  background-color: #d9d9d9;
}

.return-bar {
  height: 16px;
  transition: width 0.3s ease;
}

.return-bar.positive {
  background-color: #f50;
  margin-left: 50%;
}

.return-bar.negative {
  background-color: #2db7f5;
  margin-left: calc(50% - 100%);
}

.return-bar.compound {
  height: 8px;
  margin-top: 4px;
}

.return-bar.compound.positive {
  background-color: #faad14;
}

.return-bar.compound.negative {
  background-color: #1890ff;
}

/* 策略组合相关样式 */
.selected-item {
  background-color: #e6f7ff !important;
  border-left: 3px solid #1890ff;
} 